package models;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import play.db.jpa.Model;

@Entity
public class Request extends Model {

	@ManyToOne
	private User user;
	
	@ManyToOne
	private User requester;
	
	@ManyToOne
	private DriverJourney journey;
	
	private Boolean isOk;
	private Boolean checked;

	public Request(User user, User requester, DriverJourney journey,
			Boolean isOk, Boolean checked) {
		super();
		this.user = user;
		this.requester = requester;
		this.journey = journey;
		this.isOk = isOk;
		this.checked = checked;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public User getRequester() {
		return requester;
	}

	public void setRequester(User requester) {
		this.requester = requester;
	}

	public DriverJourney getJourney() {
		return journey;
	}

	public void setJourney(DriverJourney journey) {
		this.journey = journey;
	}

	public Boolean getIsOk() {
		return isOk;
	}

	public void setIsOk(Boolean isOk) {
		this.isOk = isOk;
	}

	public Boolean getChecked() {
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}
	
	
	
}
